﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Xeno.Core;
namespace XenoStudio
{
    public partial class ModuleEditor : UserControl
    {
        public bool FlagForDelete { get; set; }
        public float InitialY { get; set; }
        public XenoModule Module { get; set; }
        public void AddControl(Control c)
        {
            a1Panel1.Controls.Add(c);
        }
        public void SetHeight(int h){
            this.Size = new Size(Size.Width, h+5);
            this.a1Panel1.Size = new Size(this.a1Panel1.Size.Width, h);
        }
        public ModuleEditor()
        {
            InitializeComponent();
            FlagForDelete = false;
        }
        public void SetLabel(string name)
        {
            ModuleLabel.Text = name;
        }
       
        protected override void OnPaint(PaintEventArgs e)
        {
            //base.OnPaint(e);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FlagForDelete = true;
        }
        //private void ModuleEditor_Paint(object sender, PaintEventArgs e)
        //{

        //}
    }
}
